import request from '@/utils/request'

export function dics(data) {
  return request({
    url: 'admin/cmd/v1/dic',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: 'admin/cmd/v1/dic',
    method: 'delete',
    data
  })
}

export function get(id) {
  return request({
    url: 'admin/cmd/v1/dic/' + id,
    method: 'get'
  })
}

export function saveOrUpdate(data) {
  return request({
    url: 'admin/cmd/v1/dic',
    method: 'put',
    data
  })
}
